﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Samples.ServiceHosting.StorageClient;

namespace Dtyo_WebRole
{
    public class Employee : TableStorageEntity
    {
        public Employee()
        {
            PartitionKey = DateTime.UtcNow.ToString("MMddyyyy");
            // Row key allows sorting, so we make sure the rows come back in time order.
            RowKey = string.Format("{0:10}_{1}", DateTime.MaxValue.Ticks - DateTime.Now.Ticks, Guid.NewGuid());
        }

        public string Firstname { get; set; }
        public string Lastname { get; set; }
        public string DepartmentKey { get ; set; }
    }
}
